<?php
	class meModel extends Model{
		public function meAction(){
				$uid = $_SESSION['user']['id'];
				$check = "SELECT * FROM `user` WHERE id = $uid";
				$data = $this->link->selectDB($check);
				$checkzero = "SELECT count(followed) num from attention WHERE followed = $uid";
				$resultzero = $this->link->selectDB($checkzero);
				$num = $resultzero[0]['num'];
				echo json_encode(['data'=>$data,'num'=>$num]);
		}
	}
	
?>